package HibernateBeans;

import java.io.Serializable;
import java.sql.Date;

public class Customer_Products implements Serializable{
CustomerDetails custd;
ProductDetails prodd;
int cp_id;
String user_id;
String pid;
Date start_date;
int discount;
public int getCp_id() {
	return cp_id;
}


public void setCp_id(int cp_id) {
	this.cp_id = cp_id;
}
public String getUser_id() {
	return user_id;
}
public void setUser_id(String user_id) {
	this.user_id = user_id;
}
public String getPid() {
	return pid;
}
public void setPid(String pid) {
	this.pid = pid;
}
public Date getStart_date() {
	return start_date;
}
public void setStart_date(Date start_date) {
	this.start_date = start_date;
}
public int getDiscount() {
	return discount;
}
public void setDiscount(int discount) {
	this.discount = discount;
}
public CustomerDetails getCustd() {
	return custd;
}
public void setCustd(CustomerDetails custd) {
	this.custd = custd;
}
public ProductDetails getProdd() {
	return prodd;
}
public void setProdd(ProductDetails prodd) {
	this.prodd = prodd;
}
public Customer_Products() {
}
public Customer_Products(int cp_id, String user_id, String pid,
		Date start_date, int discount) {
	super();
	this.cp_id = cp_id;
	this.user_id = user_id;
	this.pid = pid;
	this.start_date = start_date;
	this.discount = discount;
}


@Override
public String toString() {
	return "Customer_Products [custd=" + custd + ", prodd=" + prodd
			+ ", cp_id=" + cp_id + ", user_id=" + user_id + ", pid=" + pid
			+ ", start_date=" + start_date + ", discount=" + discount + "]";
}
}
